Socket
Socket
Sign inDemoInstall

async-bugs

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

async-bugs

Get fuller stack traces in nodejs for async stacks


Version published
Weekly downloads
5
Maintainers
1
Weekly downloads
 
Created
Source

async-bugs

Create fuller stacktraces, remove all internal lines and gray out modules.

You probably don't want to run this in production. It's great for development and testing, but in production it will slow your app down a great deal.

Example Conditional Require

if (process.env.NODE_ENV !== 'production') {
  require('async-bugs')
}

Modes

Normal

The normal mode uses trace and trace-cleaner to give you stack traces that are organised and minimised to only the stacks still in scope.

Verbose

There are some cases the normal mode can not handle. For example if you are doing some crazy Error extending and it still loses the stack trace. In that case, the verbose mode simple logs every async call and outputs it on error. It'll be long, but the call should be there.

Installation

npm install --save async-bugs

Example Usage

Include in your app:

Normal

require('async-bugs')

Verbose

require('async-bugs/verbose')

Or add when running node:

Normal

node -r async-bugs

Verbose

node -r async-bugs/verbose

Keywords

FAQs

Package last updated on 14 Aug 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc